-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(gcp): add check to detect persistent disks on suspended VM instances #9747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat(gcp): add check to detect persistent disks on suspended VM instances #9747
Conversation
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
|
✅ All necessary |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9747 +/- ##
==========================================
+ Coverage 86.60% 92.86% +6.26%
==========================================
Files 222 135 -87
Lines 5645 3351 -2294
==========================================
- Hits 4889 3112 -1777
+ Misses 756 239 -517
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
3 package(s) affected
|
|
This check is not security related, it's cost-effective related so we should discuss with the team if we want to add it or not. |
After discussing, we can include it since having permanent disks on suspended VM instances can lead also to security issues and not just costs. Please, modify the metadata to ensure it's more focused on security risks. |
…ersistent-disks-on-suspended-v-ms
Context
New security check for GCP Compute Engine to detect persistent disks attached to suspended VMs. Suspended VMs with attached disks incur unnecessary storage costs and may pose security risks from forgotten data. This check helps identify these resources for cleanup or review.
Description
This PR adds a new GCP check that verifies whether suspended VMs have persistent disks still attached. The check evaluates all VM instances and reports:
Steps to review
statusfield added to theInstancemodel incompute_service.py_get_instances()compute_instance_suspended_with_persistent_disks.pymetadata.jsonfor accuracyChecklist
UI
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.